package com.teamblueplus.brush;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Path;

/**
 * Created by IntelliJ IDEA.
 * User: almondmendoza
 * Date: 10/11/2010
 * Time: 12:44 AM
 * Link: http://www.tutorialforandroid.com/
 */
public class DrawingPath implements ICanvasCommand{
    public Path path;
    public Paint paint;

    public void draw(Canvas canvas) {
        canvas.drawPath( path, paint );
    }

    public void undo() {
        //Todo this would be changed later
    }
    
    public static DrawingPath newInstance(Path path, Paint paint)
    {
    	DrawingPath temp = new DrawingPath();
    	temp.paint = new Paint(paint);
    	temp.path = new Path(path);
    return temp;
    }
}
